﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="autoGenerate.aspx.cs" Inherits="Gatheshop.Web.admin.giftcard.autoGenerate" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>添加礼品卡</title>
    <link type="text/css" rel="stylesheet" href="../../scripts/ui/skins/Aqua/css/ligerui-all.css" />
<link type="text/css" rel="stylesheet" href="../images/style.css" />
<link type="text/css" rel="stylesheet" href="../../css/pagination.css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="navigation">首页 &gt; 销售管理 &gt; 添加礼品卡</div>
    <div class="tools_box">
	    <div class="tools_bar">
            <div class="search_box">
              金额(元):<asp:TextBox ID="txtCount" CssClass="txtInput" runat="server"></asp:TextBox>
                生成张数:<asp:TextBox ID="txtNum" CssClass="txtInput" runat="server"></asp:TextBox>
            <asp:Button ID="btnAdd" runat="server" Text="自动生成" CssClass="btnSearch" 
                    onclick="btnAdd_Click"/>

		    </div>
                 
                   </div>
    </div>

    <table class="msgtable" align="center">
    <tr>
    <td colspan="2" align="center">		        <asp:GridView ID="gv_card" 
            runat="server" AutoGenerateColumns="False" HorizontalAlign="Center" 
            Width="585px">
                    <Columns>
                        <asp:BoundField DataField="id" HeaderText="ID" />
                        <asp:BoundField DataField="cardNo" HeaderText="卡号" />
                        <asp:BoundField DataField="cardPwd" HeaderText="密码" />
<asp:BoundField DataField="count" HeaderText="金额(元)"></asp:BoundField>
                        <asp:BoundField DataField="createTime" HeaderText="生成时间" />
                    </Columns>
                </asp:GridView>    </td></tr>
    <tr>
    <td align="center"> <asp:Button ID="exportToExcel" runat="server" 
            CssClass="btnSearch" Text="导出到Excel" onclick="exportToExcel_Click" /></td>
    <td align="center"> <asp:Button ID="importToDB" runat="server"  
            CssClass="btnSearch" Text="导入礼品卡库" onclick="importToDB_Click" /></td>
    </tr></table>

    </form>
</body>
</html>
